<template>
  <div v-html="content"></div>
</template>

<script>
import { getNews } from '@/api/newsApi'

export default {
  name: 'News',
  data() {
    return {
      content: ''
    }
  },
  mounted() {
    // 获取资讯数据
    getNews().then((res) => (this.content = res))
  }
}
</script>

<style></style>
